package ui;
import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import net.miginfocom.swing.MigLayout;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;


public class forgot_second extends JFrame {

	private JPanel contentPane;
	private JTextField textField;
	private JButton btnSubmit;
	private JButton btnBack;
	private JButton btnQuit;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					forgot_second frame = new forgot_second();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public forgot_second() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 300, 400);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(new MigLayout("", "[][grow][][][][][][][]", "[][][][][]"));
		
		JLabel lblNewLabel = new JLabel("Security Question");
		contentPane.add(lblNewLabel, "cell 0 0 9 1");
		
		textField = new JTextField("Answer");
		contentPane.add(textField, "cell 1 1 8 1,growx");
		textField.setColumns(10);
		
		btnSubmit = new JButton("Submit");
		contentPane.add(btnSubmit, "cell 8 2");
		
		btnBack = new JButton("Back");
		btnBack.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent e) {
				forgot x = new forgot();
				x.setVisible(true);
				dispose();
			}
		});
		contentPane.add(btnBack, "cell 8 3");
		
		btnQuit = new JButton("Quit");
		btnQuit.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent e) {
				System.exit(0);
			}
		});
		contentPane.add(btnQuit, "cell 8 4");
	}

}
